package com.zikao.config;/**
 * Created by My on 2021-02-08.
 */

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Author: Likaisheng
 * @Description: 解决分页时total=0的问题
 * @Date: Created in 14:52:06 2021-02-08
 * @Modified By:
 */
@Configuration
public class MyBatisPlusConfig {

    /**
     *   mybatis-plus分页插件
     */
    @Bean
    public PaginationInterceptor paginationInterceptor() {
        PaginationInterceptor page = new PaginationInterceptor();
        page.setDialectType("mysql");
        return page;
    }
}
